
SRCs:=$(wildcard *.c)
EXE:=$(patsubst %.c,%,$(SRCs))
CC:=gcc
all:$(EXE)
% : %.c
	$(CC) $^ -o $@ -g
PHONY:clean rebuild  all
clean:
	$(RM) all $(EXE)
rebuild:clean all